import request from '@/utils/request'

// 查询黑名单记录列表
export function listBlacklist_records(query) {
  return request({
    url: '/system/blacklist_records/list',
    method: 'get',
    params: query
  })
}

// 查询黑名单记录详细
export function getBlacklist_records(blacklistId) {
  return request({
    url: '/system/blacklist_records/' + blacklistId,
    method: 'get'
  })
}

// 新增黑名单记录
export function addBlacklist_records(data) {
  return request({
    url: '/system/blacklist_records',
    method: 'post',
    data: data
  })
}

// 修改黑名单记录
export function updateBlacklist_records(data) {
  return request({
    url: '/system/blacklist_records',
    method: 'put',
    data: data
  })
}

// 删除黑名单记录
export function delBlacklist_records(blacklistId) {
  return request({
    url: '/system/blacklist_records/' + blacklistId,
    method: 'delete'
  })
}

// 导出黑名单记录
export function exportBlacklist_records(query) {
  return request({
    url: '/system/blacklist_records/export',
    method: 'get',
    params: query
  })
}